// 导入 configureStore 模块
import { configureStore } from '@reduxjs/toolkit';
// 导入 userReducer 子模块
import userReducer from './modules/user';

// 创建 store 实例
export const store = configureStore({
  // 配置 reducer
  reducer: {
    // 配置 userReducer 子模块
    user: userReducer,
  },
});
